*Croco, McDonald, Turitto Replication Code
*JEPS: "The Face of the Problem: How Subordinates Shield Executives from Blame"

*Sources of Data

*Study 1
use "study1.dta" 

*Study 2
use "study2.dta"



*Table 1

*Study 1
tab trumptreatment reversetreatment

*Study 2
tab citymantreatment reversetreatment


*Figure 1 (Study 1)
**NOTE: first line of code provides treatment effects, while second line assesses the significance of the interaction

bysort trumptreatment: reg trumpsitappstand reversetreatment
reg trumpsitappstand reversetreatment trumptreatment trumpXreverse

bysort trumptreatment: reg trumpjobappstand reversetreatment
reg trumpjobappstand reversetreatment trumptreatment trumpXreverse


*Figure 2 (Study 1)
**NOTE: first line of code provides treatment effects, while second line assesses the significance of the interaction

bysort trumptreatment: reg nielsensitappstand reversetreatment
reg nielsensitappstand reversetreatment trumptreatment nielsenXreverse

bysort trumptreatment: reg nielsenjobappstand reversetreatment
reg nielsenjobappstand reversetreatment trumptreatment nielsenXreverse


*Figure 3 (Study 2)

bysort citymantreatment: reg mayor_sit_norm reversetreatment
reg mayor_sit_norm citymantreatment##reversetreatment

bysort citymantreatment: reg mayor_job_norm reversetreatment
reg mayor_job_norm citymantreatment##reversetreatment


**APPENDIX**


*Table A1a is generated using the code for Figures 1-3


*Table A1b 

*Column 1, Row 1 and 2 (Study 1)
bysort reversetreatment: sum trumpsitappstand if trumptreatment==1
*Column 2, Row 1 and 2 (Study 1)
bysort reversetreatment: sum trumpsitappstand if trumptreatment==0
*Column 3, Row 1 and 2 (Study 1)
bysort reversetreatment: sum trumpjobappstand if trumptreatment==1
*Column 4, Row 1 and 2 (Study 1)
bysort reversetreatment: sum trumpjobappstand if trumptreatment==0
*Column 1, Row 3 and 4 (Study 1)
bysort reversetreatment: sum nielsensitappstand if trumptreatment==1
*Column 2, Row 3 and 4 (Study 1)
bysort reversetreatment: sum nielsensitappstand if trumptreatment==0
*Column 3, Row 3 and 4 (Study 1)
bysort reversetreatment: sum nielsenjobappstand if trumptreatment==1
*Column 4, Row 3 and 4 (Study 1)
bysort reversetreatment: sum nielsenjobappstand if trumptreatment==0
*Column 1, Row 5 and 6 (Study 2)
bysort reversetreatment: sum mayor_sit_norm if citymantreatment==0
*Column 2, Row 5 and 6 (Study 2)
bysort reversetreatment: sum mayor_sit_norm if citymantreatment==1
*Column 3, Row 5 and 6 (Study 2)
bysort reversetreatment: sum mayor_job_norm if citymantreatment==0
*Column 4, Row 5 and 6 (Study 2)
bysort reversetreatment: sum mayor_job_norm if citymantreatment==1


*Table A2

*Column 1 (Study 1)
reg trumpsitappstand reversetreatment##binarydem if trumptreatment==1
*Column 2 (Study 1)
reg trumpjobappstand reversetreatment##binarydem if trumptreatment==1
*Column 3 (Study 1)
reg nielsensitappstand reversetreatment##binarydem if trumptreatment==0
*Column 4 (Study 1)
reg nielsenjobappstand reversetreatment##binarydem if trumptreatment==0
*Column 5 (Study 2)
reg mayor_sit_norm reversetreatment##binarydem if citymantreatment==0
*Column 6 (Study 2)
reg mayor_job_norm reversetreatment##binarydem if citymantreatment==0

*Table A3

*Study 1
logit reversetreatment pid7 age male2 white faminc
*Study 2
logit reversetreatment pid7 age male white faminc

*Table A4

*Study 1
logit nielsentreatment pid7 age male2 white faminc
*Study 2
logit citymantreatment pid7 age male white faminc


*Table A5

*Study 1
tab pid3
sum age
tab nonhispwhite
tab black
tab under50k
tab male2

*Study 2
tab pidwleaners
sum age
tab race
tab gender
tab under50k
tab male

*Table A6a (Study 1)

*Columns 1-2
bysort trumptreatment: reg trumpsitappstand reversetreatment pid7 age male2 white faminc
*Columns 3-4
bysort trumptreatment: reg trumpjobappstand reversetreatment pid7 age male2 white faminc

*Table A6b (Study 1)

*Columns 1-2
bysort trumptreatment: reg nielsensitappstand reversetreatment pid7 age male2 white faminc
*Columns 3-4
bysort trumptreatment: reg nielsenjobappstand reversetreatment pid7 age male2 white faminc

*Table A6c (Study 2)

*Columns 1-2
*NOTE: code will provide the values in reverse order, so column 2 followed by column 1
bysort citymantreatment: reg mayor_sit_norm reversetreatment pid7 age male white faminc
*Columns 3-4
*NOTE: code will provide the values in reverse order, so column 4 followed by column 3
bysort citymantreatment: reg mayor_job_norm reversetreatment pid7 age male white faminc

*Table A7 (Study 1)
*NOTE: code will provide the values in reverse order, so column 2 followed by column 1
bysort binarydem: reg trumphoneststand reversetreatment
